/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.carpark.servicies;

import cz.muni.fi.pa165.carpark.TO.UserTO;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * This is just a wrapper class
 * @author Martin
 */
public interface AuthorizationService extends UserDetailsService {
    public void create(UserTO u);
    public void createSuper(UserTO u); // for creating super admin only
    public UserTO retrieve(String username) throws UsernameNotFoundException;
    
}
